﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace CodeFirst.Migrations
{
    public partial class init005 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "PaperHeight",
                table: "base_PrintTempForHiprint",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PaperType",
                table: "base_PrintTempForHiprint",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PaperWidth",
                table: "base_PrintTempForHiprint",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.InsertData(
                table: "sys_Menu",
                columns: new[] { "Id", "Code", "CreateTime", "CreateUser", "DeleteTime", "DeleteUser", "EnableState", "Icon", "IsDelete", "Level", "LinkUrl", "MenuName", "ParentId", "Remark", "Sort", "UpdateTime", "UpdateUser" },
                values: new object[] { "quanxianguanli", "system.permission", new DateTime(2024, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "", null, "", 1, "el-icon-s-check", false, 2, "/permission", "权限管理", "xitonggongju", "系统初始数据", 9, null, "" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "sys_Menu",
                keyColumn: "Id",
                keyValue: "quanxianguanli");

            migrationBuilder.DropColumn(
                name: "PaperHeight",
                table: "base_PrintTempForHiprint");

            migrationBuilder.DropColumn(
                name: "PaperType",
                table: "base_PrintTempForHiprint");

            migrationBuilder.DropColumn(
                name: "PaperWidth",
                table: "base_PrintTempForHiprint");
        }
    }
}
